﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QTimer>
#include "axistag.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
private:
    void initPlot();
    void dealSelection();
    void dealTimeout();

private:
    Ui::MainWindow *ui;
    QTimer *m_timer;
    double m_x;
    AxisTag *m_tag1;
    AxisTag *m_tag2;
};

#endif // MAINWINDOW_H
